from django.contrib import admin
from .models import RecyclingPoint

@admin.register(RecyclingPoint)
class RecyclingPointAdmin(admin.ModelAdmin):
    list_display = ('name', 'address', 'status', 'view_count', 'direction_view_count', 'last_accessed_at')
    list_filter = ('status', 'created_at')
    search_fields = ('name', 'address')
    readonly_fields = ('view_count', 'direction_view_count', 'last_accessed_at')